public class Demo5 {
    public static void main(String[] args) {
        int i = 1;
        while(i<=9)
        {
            int j = 1;
            while(j<=i)
            {
                System.out.printf("%d*%d=%-4d", j, i, j*i);
                j++;
            }
            System.out.print("\n");
            i++;
        }
    }
}
